package com.ruoyi.doctor.service.impl;

import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.doctor.domain.DoctorPatient;
import com.ruoyi.doctor.mapper.DoctorRegisListMapper;
import com.ruoyi.doctor.service.DoctorRegisListService;
import com.ruoyi.system.domain.SysRegister;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DoctorRegisListServiceImpl implements DoctorRegisListService {

    @Autowired
    DoctorRegisListMapper mapper;

    @Override
    public List<DoctorPatient> queryAll(DoctorPatient sysPatient, String deptName, String regisName) {
        return mapper.queryAll(sysPatient,deptName,regisName);
    }

    @Override
    public int update0(int patientId) {
        return mapper.update0(patientId);
    }

    @Override
    public int update1(int patientId) {
        return mapper.update1(patientId);
    }

    @Override
    public List<SysDept> queryDept() {
        return mapper.queryDept();
    }

    @Override
    public List<SysRegister> queryRegis() {
        return mapper.queryRegis();
    }

    @Override
    public int deletePatientByIds(Long[] patientIds) {
        return mapper.deletePatientByIds(patientIds);
    }
}
